<?php
/* 判断登陆的公用控制器
* @Author: Jerry-chen
* @Date:   2014-07-06 17:57:13
* @Last Modified time: 2014-07-23 17:03:44
* @Last Modified by: Jerry-chen<uranusbill@163.com>
* @ Copyright (c) 2014 http://www.cooldreamer.com All rightsreserved.
*/
class CommonControl extends Control
{
	
	public function __init()
	{
		//检测用户是否登录
		if(!isset($_SESSION['username']) || !isset($_SESSION['aid'])){
			go(U('Login/index'));
		}
	}
}

?>
